<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%><%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %><%@ taglib uri="http://java.sun.com/jsp/jstl/fmt"  prefix="fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<title>医生信息表</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/easyui/easyui/1.3.4/themes/default/easyui.css">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/easyui/easyui/1.3.4/themes/icon.css">
	<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/easyui/easyui/1.3.4/demo/demo.css">
	<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/easyui/1.3.4/jquery.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/easyui/1.3.4/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/easyui/1.3.4/locale/easyui-lang-zh_CN.js"></script>
	<script type="text/javascript" src="${pageContext.request.contextPath}/easyui/easyui/1.3.4/plugins/jquery.datagrid.js"></script>
	<script type="text/javascript">
	$(function(){
		$('#tt').datagrid({
			fitColumns:true,
			idField:'docid',
			rownumbers:true,
			striped:true,
			pagination:true,			pageSize:10,			pageList:[10,20,30,50],
			url:'${pageContext.request.contextPath}/doctor/doctorinfoList.action',
			columns:[[
				{field:'docid',title:'ID',width:60,align:'center'},
				{field:'docname',title:'姓名',width:100,align:'center'},
				{field:'docmale',title:'性别',width:80,align:'center'},
				{field:'docage',title:'年龄',width:80,align:'center'},
				{field:'操作',title:'操作',width:80,align:'center',
					formatter:function(value,row,index){
						var a = '<a class="button" href="javascript:;" onclick="detailrow(\''+ row.docid + '\')">详情</a> ';
						var b = '<a class="button" href="javascript:;" onclick="editrow(\''+ row.docid + '\')">编辑</a> ';
						return a+b;
					}
				}
			]],
			toolbar: '#tb',
			loadMsg:"数据加载中..."
		});
	});	
	</script>
</head>
<body>
	<div id="tb" style="padding:3px">
		<div style="margin-bottom:5px">
			<a class="easyui-linkbutton" iconCls="icon-add" plain="true">新增</a>
			<a class="easyui-linkbutton" iconCls="icon-save" plain="true">保存</a>
		</div>
	</div>
	<table id="tt">		<c:forEach items="${Doctorinfo }" var="info">			<tr>					<td>${info.docid}</td>				<td>${info.docname }</td>				<td>${info.docmale }</td>				<td>${info.docage }</td>			</tr>		</c:forEach>
	</table>
</body>
</html>